<?php $this->load->view('common/admin_header');?>
<div class="block">
  <div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2><?=$lang['content_lable_5']?></h2>
  </div>
  <!-- .block_head ends -->
  <div class="block_content">
    <p class="breadcrumb"><?=$lang['global_lable_14']?> &raquo; <a href="<?=site_url('admins/index')?>"><?=$lang['global_lable_11']?></a> &raquo; <?=$lang['content_lable_5']?> &raquo; <strong><?=$lang['content_lable_15']?></strong></p>
    <?php $this->load->view('common/notify');?>
    <form action="<?=site_url('admins/logoimg')?>" method="get">
      <input type="hidden" name="field" value="<?=isset($field)?$field:'n.sort_order'?>" id="field">
      <input type="hidden" name="sort_order" value="<?=isset($sort)?$sort:'asc'?>" id="sort_order">
      <table cellpadding="0" cellspacing="0" width="100%" class="sortable">
        <thead>
          <tr class="list_head">
            <th><?=$lang['content_lable_11']?></th>
            <th style="width: 150pt;"><?=$lang['content_lable_12']?></th>
            <th><?=$lang['content_lable_13']?></th>
            <th><?=$lang['content_lable_14']?></th>
            <th><?=$lang['global_lable_17']?></th>
            <th><?=$lang['global_lable_20']?></th>
            <th><?=$lang['global_lable_16']?></th>
            <th style="text-align:center"><?=$lang['global_lable_21']?></th>
          </tr>
          <tr class="list_tool">
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td style="text-align:center">
              <a href="<?=site_url('admins/specs/edit')?>" class="btn btn-small btn-danger"><i class="icon-plus"></i> <?=$lang['global_lable_23']?></a>
            </td>
          </tr>
        </thead>
        <tbody class="table">
          <?php if($lists):?>
          <?php foreach($lists as $vo):?>
          <tr>
            <td><?=$vo['name']?>  </td>
            <!--<td><?=$category_string?></td>
            <td><?=$position_string?></td>-->
            <td><?=isset($cats[$vo['cat_id']]) ? $cats[$vo['cat_id']]['title'] : '--';?></td>
			
            <?php if($getlang=='zh-tw'):?>
            <td><?=isset($posarea[$vo['pos_id']]) ? $posarea[$vo['pos_id']]['pos_title'] : '--';?></td>
            <?php else:?>
            <td><?=isset($posarea[$vo['pos_id']]) ? $posarea[$vo['pos_id']]['pos_name'] : '--';?></td>
            <?php endif;?>
            <td style="margin:"><?=$vo['is_pos'] == 1 ? $lang['content_lable_45'] : $lang['content_lable_46'];?></td>
			
            <td><?=$vo['sort']?></td>
            <td><?=date('Y-m-d H:i',$vo['add_time'])?></td>
            <td><?=$vo['status'] == 1 ? $lang['content_lable_40'] : $lang['content_lable_41'];?></td>
            <td class="listaction">
              <a href="<?=base_url('admins/specs/edit?id='.$vo['id']);?>" class="l_edit"><?=$lang['global_lable_24']?></a>
              <a href="<?=base_url('admins/specs/delete?id='.$vo['id']);?>;" onClick="return confirm('確定刪除嗎?')" class="l_delete"><?=$lang['global_lable_25']?></a></td>
          </tr>
          <?php endforeach;?>
          <?php else:?>
          <tr>
            <td colspan="19" class="nodata"><p><?=$lang['global_lable_42']?></p></td>
          </tr>
          <?php endif;?>
        </tbody>
      </table>
      <p>
      </p>
	  <div id="pagination"><?php echo $pagination;?><div class="listscount"><?=$lang['global_lable_29']?> <?=$lists_count?> <?=$lang['global_lable_30']?></div></div>
      <!-- .tableactions ends -->
<!--       <div id="pagination"><?php echo $pagination;?><div class="listscount">共有 <?=$lists_count?> 條記錄</div></div>
 -->      <!-- .pagination ends -->
    </form>
  </div>
  <!-- .block_content ends -->
  <div class="bendl"></div>
  <div class="bendr"></div>
</div>
<?php $this->load->view('common/admin_footer');?>
